package decorator;

import decorator.coffee.LongBlack;
import decorator.decorator.Chocolate;
import decorator.decorator.Milk;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class CoffeeBar {
    public static void main(String[] args) {
        Drink order = new LongBlack();
        //加入调料
        order = new Milk(order);
        order = new Chocolate(order);
        order = new Chocolate(order);

        System.out.println(order.getDes());
        System.out.println(order.cost());
        //巧克力&&巧克力&&牛奶&&美式咖啡
        //11.5
    }
}
